
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { lazyPlugin } from './directives/index'
import { componentPlugin } from './components'
import App from './App.vue'
import router from './router'
// 引入初始化样式文件
import './styles/common.scss'
//测试接口函数
// import { getCategory } from '@/apis/testapi'
// getCategory().then(res => {
//   console.log(res)
// })
const app = createApp(App)
const pinia  = createPinia()
pinia.use(piniaPluginPersistedstate)
// 插件注册
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)

app.mount('#app')
